{{template "header"}}
<title>系统登陆</title>
</head>

<body>
        {{.Success}}
        <form method="post" action="/login">
     　　　　<input type="text" name="captcha" />
             {{create_captcha}}<br />
     　　　　<input type="submit" value="提交" />
     　　</form>
    <!-- <div class="container" style="width: 500px;">
        <form class="form-horizontal" method="POST" action="/login">
            <div class="form-group">
                <label class="col-lg-4 control-label">请输入用户帐号：</label>
                <div class="col-lg-6">
                    <input id="uname" class="form-control" name="uname" placeholder="Account">
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-4 control-label">请输入用户密码：</label>
                <div class="col-lg-6">
                    <input id="pwd" type="password" class="form-control" name="pwd" placeholder="Password">
                </div>
            </div>

            <div class="form-group">
                <div class="col-lg-offset-4 col-lg-10">
                    <div class="checkbox">
                        <label>
                            <input name="autoLogin" type="checkbox">下次自动登录
                        </label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-lg-offset-2 col-lg-10">
                    <a href="/login">
                        <button type="submit" class="btn btn-default" onclick="return checkInput();">登录</button>
                    </a>
                    <button class="btn btn-default" onclick="return backToHome();">返回</button>
                    <script type="text/javascript">
                        function backToHome() {
                            window.location.href = "/";
                            return false;
                        }

                        function checkInput() {
                            var uname = document.getElementById("uname");
                            if (uname.value.length == 0) {
                                alert("请输入管理员帐号");
                                return false;
                            }
                            var pwd = document.getElementById("pwd");
                            if (pwd.value.length == 0) {
                                alert("请输入管理员密码");
                                return false;
                            }
                        }
                    </script>
                </div>
            </div>
        </form>
    </div> -->
</body>

</html>